﻿using System;
using System.ComponentModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Warehouse.Service.Data;
using Warehouse.Silverlight.Core.Infrastructure.Events;

namespace Warehouse.Silverlight.Modules.Main.Models
{
    public interface IProductListModel
    {
        bool IsBusy { get; }
        bool HasChanges { get; }
        bool HasErrors { get; }

        //event EventHandler<SubmitOperationEventArgs> SubmitChangesComplete;
        //void SubmitChangesAsync();
        
        //void RejectChanges();

        event EventHandler<EntityResultsArgs<Product>> GetProductsByCodeOrNameComplete;
        void GetProductsByCodeOrNameAsync(string text);

        event EventHandler<EntityResultsArgs<Product>> GetProductsComplete;
        void GetProductsAsync();

        event PropertyChangedEventHandler PropertyChanged;
    }
}
